<template>
	<view class="DayNew">
		<view class="DayNew-top">
			周一周四·新品首发
		</view>
		<view class="DayNew-in">
			<view class="item" v-for="item in newlist" :key="item.id">
				<view class="img">
					<u-image width="100%" height="100%" :src=item.list_pic_url>
					</u-image>
				</view>

				<text class="tex">{{item.name}}</text>
				<text class="tex text2">￥ {{item.retail_price.toFixed(2)}} 元</text>
			</view>

		</view>

	</view>
</template>

<script>
	export default {
		name: "DayNew",
		props: {
			newlist: {
				type: Array,
				default () {
					return []
				}
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.DayNew-top {
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		font-size: 36rpx;
		letter-spacing: 3px;

	}

	.DayNew-in {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		width: 750rpx;

		.item {
			width: 49%;

			margin-bottom: 14rpx;
			text-align: center;
			padding-bottom: 14rpx;

			.img {
				width: 100%;
				height: 367rpx;
			}

			.tex {
				font-size: 28rpx;
				font-family: 黑体;
				display: block;
			}

			.text2 {
				margin-top: 14rpx;
				color: darkred;
			}

		}
	}
</style>
